package com.wskj.feign;


import com.wskj.base.Result;
import com.wskj.entity.Supplier;
import com.wskj.service.ISupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 供应商信息表 前端控制器
 * </p>
 *
 * @author 顽石教育-www.wskj.com
 * @since 2021-09-07
 */
@RestController
@RequestMapping("/feign/supplier")
public class SupplierFeign {

    @Autowired
     private ISupplierService supplierService;

    @GetMapping("/user/{id}")
    public Supplier findBySupplierId(@PathVariable Integer id){
        return supplierService.getById(id);

    }
}
